package com.jic.order.impl;

import java.lang.Long;
import java.util.List;

import com.jic.order.entity.OrderOutStockNotice;
import com.jic.order.mapper.OrderOutStockNoticeMapper;
import com.jic.order.service.OrderOutStockNoticeService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 无货提醒
 * @author : 
 * @email : 
 * @since : 2020-08-12 10:23:25
 * @version : v1.0.0
 */
@Service
public class OrderOutStockNoticeServiceImpl implements OrderOutStockNoticeService{

    @Autowired
    private OrderOutStockNoticeMapper orderOutStockNoticeMapper;

    @Override
    public long insert(OrderOutStockNotice orderOutStockNotice) {
        return orderOutStockNoticeMapper.insert(orderOutStockNotice);
    }

    @Override
    public long delete(Long id) {
        return orderOutStockNoticeMapper.delete(id);
    }

    @Override
    public long update(OrderOutStockNotice orderOutStockNotice) {
        return orderOutStockNoticeMapper.update(orderOutStockNotice);
    }

    @Override
    public OrderOutStockNotice queryByPrimaryKey(Long id){
        return orderOutStockNoticeMapper.queryByPrimaryKey(id);
    }

    @Override
    public List<OrderOutStockNotice> query(OrderOutStockNotice orderOutStockNotice){
        return orderOutStockNoticeMapper.query(orderOutStockNotice);
    }


}